package com.qianfeng.zw.meilishuo.vh;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.qianfeng.zw.meilishuo.listener.OnItemClickLitener;

/**
 * @Package com.qianfeng.zw.meilishuo.vh
 * @作 用:
 * @创 建 人: zhangwei
 * @日 期: 15/3/29 15:38
 * @修 改 人:
 * @日 期:
 */
public class AppViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
    private OnItemClickLitener mOnItemClickLitener;
    private View mItemView;

    public AppViewHolder(View itemView, OnItemClickLitener onItemClickLitener) {
        super(itemView);
        mItemView = itemView;
        mOnItemClickLitener = onItemClickLitener;
    }

    @Override
    public void onClick(View v) {
        if (mOnItemClickLitener != null) {
            mOnItemClickLitener.onItemClick(v, getAdapterPosition());
        }
    }
}
